package com.gimi.cloud.jimi.dto.userInfo;

import com.gimi.cloud.jimi.common.enums.ResponseCodeEnum;
import com.gimi.cloud.jimi.dto.base.BaseDTO;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;


/**
 * 用户配送信息表
 * @author chendi
 * @date 2017年12月27日
 */
public class RdExpressInfoDTO extends BaseDTO{

	private static final long serialVersionUID = 1L;
	//当前页
	private Integer currentPage;
	//一页展示多少条数据
	private Integer pageSize;
	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}


	/**
     * 主键
     */
	private String eId;

	@NotNull(groups = {AddExpress.class},message = "userId不能为空")
	private Integer userId;

	@NotBlank(groups = {AddExpress.class},message = "收货人姓名不能为空")
	private String name;

	@NotBlank(groups = {AddExpress.class},message = "收货人电话不能为空")
	private String mobile;

	@NotBlank(groups = {AddExpress.class},message = "收货人地址不能为空")
	private String address;

	@NotBlank(groups = {AddExpress.class},message = "收货人地址不能为空")
	private String detailAddress;
	
	
	private ResponseCodeEnum responseCode;

	public interface AddExpress{}
    
	public ResponseCodeEnum getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(ResponseCodeEnum responseCode) {
		this.responseCode = responseCode;
	}
	public String geteId() {
		return eId;
	}

	public void seteId(String eId) {
		this.eId = eId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDetailAddress() {
		return detailAddress;
	}

	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	
}
